import Cookies from 'js-cookie'

const adminToken = "admin_token";
const usertype = "type";
const userid = "id";
export function getToken() {
  return Cookies.get(adminToken)
}

export function setToken(token) {
  return Cookies.set(adminToken, token)
}

export function removeToken() {
  return Cookies.remove(adminToken)
}
export function setid(id) {
  return Cookies.set(userid, id)
}
export function getid() {
  return Cookies.get(userid)
}
export function removeid() {
  return Cookies.remove(userid)
}
export function settype(type) {
  return Cookies.set(usertype, type)
}
export function gettype() {
  return Cookies.get(usertype)
}
export function removetype() {
  return Cookies.remove(usertype)
}